package cn.zxh.improvement.common.core.exceptions;

import cn.zxh.improvement.common.core.enums.BaseMessageEnum;

/**
 * 非法代码异常
 *
 * @author zxh
 * @since 2023/4/13 16:09:14
 */
public class IllegalArgumentCodeException extends BaseException {

    public static IllegalArgumentCodeException of(BaseMessageEnum<?> message) {
        return new IllegalArgumentCodeException(message);
    }

    public IllegalArgumentCodeException(BaseMessageEnum<?> message) {
        super(message.parseMessage());
    }

    public IllegalArgumentCodeException() {
        super();
    }
}
